<?php
global $smof_data;
$logo = $smof_data['recent_count'];

$args = array( 'numberposts' => $logo, 'post_status' =>'publish' );
$recent_posts = wp_get_recent_posts( $args );
//print_r ($recent_posts);
foreach( $recent_posts as $recent ){

	echo '<div class="one columns date-post alpha omega">';
	echo '<p>'.get_the_date( 'd' ).'</p><span>'.get_the_date( 'M' ).'</span>';
	echo '</div>';
	echo '<div class="three columns omega">';
	echo '<h4><a href="' . get_permalink($recent["ID"]) . '">'.$recent["post_title"].'</a></h4>';
	echo '<span>Posted by '.get_the_author_link().'</span>';
	echo '<p>' . wp_trim_words( $recent["post_content"], 20 ) . '</p>';
	echo '</div>';
}
?>